'use strict';

/**
 * Product export profile edit form attribute add select extension view
 *
 * @author    Alexandr Jeliuc <alex@jeliuc.com>
 * @copyright 2017 Akeneo SAS (http://www.akeneo.com)
 * @license   http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */
define(['jquery', 'underscore', 'pim/product/add-select/attribute'], function ($, _, AddAttributeSelect) {
  return AddAttributeSelect.extend({
    /**
     * {@inheritdoc}
     */
    getItemsToExclude: function () {
      return $.Deferred().resolve(this.getParent().getCurrentFilters());
    },
  });
});
